self.addEventListener('message',function(event){
    let promise = self.clients.matchAll().then(function(clientList){
        let senderId = event.source?event.source.id: 'unknown'
        console.log('senderId',senderId)
        console.log('clientList',clientList)
        clientList.forEach(function(client){
            if(client.id === senderId) {
                console.log('client.id ============ senderId')
                return
            } else {
                console.log('client.id !== senderId')
                client.postMessage({
                    client: senderId,
                    message: event.data
                })
            }
        })
    })
    event.waitUntil(promise)
})